package com.ys.entity.hr;

import java.util.Date;
import javax.persistence.Table;
import com.alibaba.fastjson.annotation.JSONField;
import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;
/**
*/
@Table(name="THR_OperateRegistrationItem", catalog="Id")
public class ThrOperateRegistrationItem extends BaseEntity<ThrOperateRegistrationItem> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="Pbid", nameJava="pbid", typeDataBase="varchar")
	private String pbid;
	@YsField(nameDataBase="UserId", nameJava="userId", typeDataBase="varchar")
	private String userId;
	@YsField(nameDataBase="UserName", nameJava="userName", typeDataBase="varchar")
	private String userName;
	@YsField(nameDataBase="RoleId", nameJava="roleId", typeDataBase="bigint")
	private Long roleId;
	@YsField(nameDataBase="RoleIdAttribute", nameJava="roleIdAttribute", typeDataBase="tinyint")
	private Integer roleIdAttribute;
	@YsField(nameDataBase="DeptId", nameJava="deptId", typeDataBase="varchar")
	private String deptId;
	@YsField(nameDataBase="HeadUserId", nameJava="headUserId", typeDataBase="varchar")
	private String headUserId;
	@YsField(nameDataBase="UserSex", nameJava="userSex", typeDataBase="tinyint")
	private Integer userSex;
	@YsField(nameDataBase="Telephone", nameJava="telephone", typeDataBase="varchar")
	private String telephone;
	@YsField(nameDataBase="Birthday", nameJava="birthday", typeDataBase="varchar")
	private String birthday;
	@YsField(nameDataBase="Age", nameJava="age", typeDataBase="int")
	private Integer age;
	@YsField(nameDataBase="Education", nameJava="education", typeDataBase="tinyint")
	private Integer education;
	@YsField(nameDataBase="Work", nameJava="work", typeDataBase="varchar")
	private String work;
	@YsField(nameDataBase="Adcode", nameJava="adcode", typeDataBase="varchar")
	private String adcode;
	@YsField(nameDataBase="Remark", nameJava="remark", typeDataBase="varchar")
	private String remark;
	@YsField(nameDataBase="OfficeId", nameJava="officeId", typeDataBase="bigint")
	private Long officeId;
	@YsField(nameDataBase="OtherFile", nameJava="otherFile", typeDataBase="varchar")
	private String otherFile;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@JSONField(format = "yyyy-MM-dd HH:mm:ss")
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public ThrOperateRegistrationItem setId(Long id) {
		this.id = id;
		return this;
	}
	public String getPbid() {
		return pbid;
	}
	public ThrOperateRegistrationItem setPbid(String pbid) {
		this.pbid = pbid;
		return this;
	}
	public String getUserId() {
		return userId;
	}
	public ThrOperateRegistrationItem setUserId(String userId) {
		this.userId = userId;
		return this;
	}
	public String getUserName() {
		return userName;
	}
	public ThrOperateRegistrationItem setUserName(String userName) {
		this.userName = userName;
		return this;
	}
	public Long getRoleId() {
		return roleId;
	}
	public ThrOperateRegistrationItem setRoleId(Long roleId) {
		this.roleId = roleId;
		return this;
	}
	public Integer getRoleIdAttribute() {
		return roleIdAttribute;
	}
	public ThrOperateRegistrationItem setRoleIdAttribute(Integer roleIdAttribute) {
		this.roleIdAttribute = roleIdAttribute;
		return this;
	}
	public String getDeptId() {
		return deptId;
	}
	public ThrOperateRegistrationItem setDeptId(String deptId) {
		this.deptId = deptId;
		return this;
	}
	public String getHeadUserId() {
		return headUserId;
	}
	public ThrOperateRegistrationItem setHeadUserId(String headUserId) {
		this.headUserId = headUserId;
		return this;
	}
	public Integer getUserSex() {
		return userSex;
	}
	public ThrOperateRegistrationItem setUserSex(Integer userSex) {
		this.userSex = userSex;
		return this;
	}
	public String getTelephone() {
		return telephone;
	}
	public ThrOperateRegistrationItem setTelephone(String telephone) {
		this.telephone = telephone;
		return this;
	}
	public String getBirthday() {
		return birthday;
	}
	public ThrOperateRegistrationItem setBirthday(String birthday) {
		this.birthday = birthday;
		return this;
	}
	public Integer getAge() {
		return age;
	}
	public ThrOperateRegistrationItem setAge(Integer age) {
		this.age = age;
		return this;
	}
	public Integer getEducation() {
		return education;
	}
	public ThrOperateRegistrationItem setEducation(Integer education) {
		this.education = education;
		return this;
	}
	public String getWork() {
		return work;
	}
	public ThrOperateRegistrationItem setWork(String work) {
		this.work = work;
		return this;
	}
	public String getAdcode() {
		return adcode;
	}
	public ThrOperateRegistrationItem setAdcode(String adcode) {
		this.adcode = adcode;
		return this;
	}
	public String getRemark() {
		return remark;
	}
	public ThrOperateRegistrationItem setRemark(String remark) {
		this.remark = remark;
		return this;
	}
	public Long getOfficeId() {
		return officeId;
	}
	public ThrOperateRegistrationItem setOfficeId(Long officeId) {
		this.officeId = officeId;
		return this;
	}
	public String getOtherFile() {
		return otherFile;
	}
	public ThrOperateRegistrationItem setOtherFile(String otherFile) {
		this.otherFile = otherFile;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public ThrOperateRegistrationItem setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public ThrOperateRegistrationItem setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public ThrOperateRegistrationItem setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static ThrOperateRegistrationItem thrOperateRegistrationItem(
		String pbid,
		String userId,
		String userName,
		Long roleId,
		Integer roleIdAttribute,
		String deptId,
		String headUserId,
		Integer userSex,
		String telephone,
		String birthday,
		Integer age,
		Integer education,
		String work,
		String adcode,
		String remark,
		Long officeId,
		String otherFile,
		Integer status
			) {
		ThrOperateRegistrationItem entity = new ThrOperateRegistrationItem();
		entity.setPbid(pbid);
		entity.setUserId(userId);
		entity.setUserName(userName);
		entity.setRoleId(roleId);
		entity.setRoleIdAttribute(roleIdAttribute);
		entity.setDeptId(deptId);
		entity.setHeadUserId(headUserId);
		entity.setUserSex(userSex);
		entity.setTelephone(telephone);
		entity.setBirthday(birthday);
		entity.setAge(age);
		entity.setEducation(education);
		entity.setWork(work);
		entity.setAdcode(adcode);
		entity.setRemark(remark);
		entity.setOfficeId(officeId);
		entity.setOtherFile(otherFile);
		entity.setStatus(status);
		return entity;
	}
}